#{extends 'main.html' /} #{set title:'Home' /}#{ifnot tags}

<p>No Tags</p>

#{/ifnot}
<!-- Ebrahim Zidan -->

<script>
	function passActionItem(box, tagId,actionItemId) {
	$.post('@{ActionPlanController.addTag(tagId,actionItemId)}')
		var elm = document.getElementById(tagId)
		elm.style.display =  "none"
			$('#one').jGrowl('Related')

		}
		  
	
</script>
<ul>
	#{list items:tags, as:'Tag'}

	<DIV ID=${Tag.id}>
		<li>Title : ${Tag.name}</li> <input type="button" value="Relate"
			onclick="javascript:passActionItem(this,${Tag.id},${actionItemId})" />
	</DIV>

	<br> #{/list}

</ul>
<input type="button" onClick="history.back();" value="<-- Back">